package com.lhy.mymall.mapper;
import com.lhy.mymall.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * @author: 卢辉宇
 * @date: 2022/12/14 13:49
 * @description: 商品模块接口
 */
@Mapper
public interface CategoryMapper {

     Category selectByName(String name);
     int insert(Category category);
     Category selectById(Integer id);
     int deleteById(Integer id);
     List<Category> selectList();
     List<Category> selectListByParentId(Integer parentId);
}
